﻿<sdk:ChildWindow 
    x:Class="ExampleControl.Popups.PrintPreviewDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    Title="Print Preview"
    Closing="ChildWindow_Closing" Style="{StaticResource DEChildWindow}">

    <sdk:ChildWindow.Resources>
        
    </sdk:ChildWindow.Resources>

    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition  />
            <RowDefinition  />
        </Grid.RowDefinitions>

        <Border BorderThickness="1" CornerRadius="1" BorderBrush="{StaticResource ControlBackgroundBrush}">
            <Image x:Name="previewImage" Stretch="Uniform" Margin="8,0" />
        </Border>

        <StackPanel  Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">

            <Button x:Name="OKButton" Content="Print" Width="75" Height="23" Click="OkButtonClick" Margin="2"/>

            <Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" Click="CancelButton_Click" Margin="2"/>

        </StackPanel>
    </Grid>

</sdk:ChildWindow>